#include<iostream>
#include<cmath>
using namespace std;
int n;
int main()
{
	int t;
	cin >> t;
	while (t--) {
		cin >> n;
		int ans = pow(2, n) - 1;
		cout << ans << endl;
	}
	return 0;
}